<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 将数组的单词全转为大写，要求 使用箭头函数
// const countries = ['Finland', 'Sweden', 'Norway', 'Denmark', 'Iceland']
//         for (var index = 0; index < countries.length; index++) {
//             countries[index] = countries[index].toUpperCase();
//         }
//         console.log(countries);


// 使用冒泡排序：  [90,65,78,66,48,39,92,73]  使用数组解构
// var arr1 = [90,65,78,66,48,39,92,73]
// for (var i = 0; i < arr1.length-1; i++) {
//     for (var j = 0; j < arr1.length-1-i; j++) {
//         if(arr1[j] > arr1[j+1]){
//             [arr1[j],arr1[j+1]] = [arr1[j+1],arr1[j]]
//         }
//     }
// }
// console.log(arr1);



    </script>
</head>
<body>
    
</body>
</html>